#include "MaScene.h"

MaScene::MaScene():Scene()
{
}

void MaScene::setMap(Map *m)
{
	this->map = m;
}

void MaScene::idle()
{
	Scene::idle();
	if(map->getLongueur()>-map->translation->getValue().x)
	{
		Score::score++;
		Score::AfficherScore();
		this->map->translation->setValue(Vec3f(this->map->translation->getValue().x-VITESSE,this->map->translation->getValue().y,this->map->translation->getValue().z));
	}
}
